home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news text
| default
| |
99%
| file
| C source, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 75 74 | 6b 75 78 34 2e 75 74 63 |Path: ut|kux4.utc|
|00000010| 63 2e 75 74 6b 2e 65 64 | 75 21 62 72 6d 63 66 0a |c.utk.ed|u!brmcf.|
|00000020| 46 72 6f 6d 3a 20 42 72 | 75 63 65 20 4d 63 46 61 |From: Br|uce McFa|
|00000030| 72 6c 69 6e 67 20 3c 62 | 72 6d 63 66 40 75 74 6b |rling <b|rmcf@utk|
|00000040| 75 78 2e 75 74 6b 2e 65 | 64 75 3e 0a 4e 65 77 73 |ux.utk.e|du>.News|
|00000050| 67 72 6f 75 70 73 3a 20 | 63 6f 6d 70 2e 73 79 73 |groups: |comp.sys|
|00000060| 2e 63 62 6d 0a 53 75 62 | 6a 65 63 74 3a 20 52 65 |.cbm.Sub|ject: Re|
|00000070| 3a 20 41 4e 53 49 20 53 | 54 44 20 43 2f 43 2b 2b |: ANSI S|TD C/C++|
|00000080| 20 66 6f 72 20 74 68 65 | 20 43 3d 20 36 34 3f 0a | for the| C= 64?.|
|00000090| 44 61 74 65 3a 20 54 68 | 75 2c 20 31 31 20 4a 61 |Date: Th|u, 11 Ja|
|000000a0| 6e 20 31 39 39 36 20 31 | 35 3a 31 38 3a 34 34 20 |n 1996 1|5:18:44 |
|000000b0| 2d 30 35 30 30 0a 4f 72 | 67 61 6e 69 7a 61 74 69 |-0500.Or|ganizati|
|000000c0| 6f 6e 3a 20 55 6e 69 76 | 65 72 73 69 74 79 20 6f |on: Univ|ersity o|
|000000d0| 66 20 54 65 6e 6e 65 73 | 73 65 65 2c 20 4b 6e 6f |f Tennes|see, Kno|
|000000e0| 78 76 69 6c 6c 65 0a 4d | 65 73 73 61 67 65 2d 49 |xville.M|essage-I|
|000000f0| 44 3a 20 3c 50 69 6e 65 | 2e 53 4f 4c 2e 33 2e 39 |D: <Pine|.SOL.3.9|
|00000100| 31 2e 39 36 30 31 31 31 | 31 35 30 37 33 35 2e 32 |1.960111|150735.2|
|00000110| 38 36 34 35 41 2d 31 30 | 30 30 30 30 40 75 74 6b |8645A-10|0000@utk|
|00000120| 75 78 34 2e 75 74 63 63 | 2e 75 74 6b 2e 65 64 75 |ux4.utcc|.utk.edu|
|00000130| 3e 0a 52 65 66 65 72 65 | 6e 63 65 73 3a 20 3c 73 |>.Refere|nces: <s|
|00000140| 30 66 31 32 30 35 63 2e | 30 33 32 40 73 68 61 6e |0f1205c.|032@shan|
|00000150| 64 73 2e 75 66 6c 2e 65 | 64 75 3e 20 3c 39 36 30 |ds.ufl.e|du> <960|
|00000160| 31 30 38 32 33 33 35 2e | 30 58 35 31 5a 30 30 40 |1082335.|0X51Z00@|
|00000170| 62 62 73 2e 77 6c 69 6e | 65 2e 73 65 3e 20 3c 64 |bbs.wlin|e.se> <d|
|00000180| 6f 75 67 2e 63 6f 74 74 | 6f 6e 2d 30 39 30 31 39 |oug.cott|on-09019|
|00000190| 36 31 36 31 35 30 30 30 | 30 30 31 40 73 31 30 35 |61615000|001@s105|
|000001a0| 2e 74 68 65 2d 73 70 61 | 2e 63 6f 6d 3e 20 3c 34 |.the-spa|.com> <4|
|000001b0| 64 30 65 35 63 24 66 72 | 63 40 69 78 6e 65 77 73 |d0e5c$fr|c@ixnews|
|000001c0| 37 2e 69 78 2e 6e 65 74 | 63 6f 6d 2e 63 6f 6d 3e |7.ix.net|com.com>|
|000001d0| 20 3c 50 69 6e 65 2e 53 | 47 49 2e 33 2e 39 31 2e | <Pine.S|GI.3.91.|
|000001e0| 39 36 30 31 31 30 31 32 | 30 32 32 38 2e 31 30 31 |96011012|0228.101|
|000001f0| 33 36 41 2d 31 30 30 30 | 30 30 2d 31 30 30 30 30 |36A-1000|00-10000|
|00000200| 30 2d 31 30 30 30 30 30 | 2d 31 30 30 30 30 30 40 |0-100000|-100000@|
|00000210| 68 65 61 72 74 2e 65 6e | 67 72 2e 63 73 75 6c 62 |heart.en|gr.csulb|
|00000220| 2e 65 64 75 3e 0a 4e 4e | 54 50 2d 50 6f 73 74 69 |.edu>.NN|TP-Posti|
|00000230| 6e 67 2d 48 6f 73 74 3a | 20 75 74 6b 75 78 34 2e |ng-Host:| utkux4.|
|00000240| 75 74 63 63 2e 75 74 6b | 2e 65 64 75 0a 4d 69 6d |utcc.utk|.edu.Mim|
|00000250| 65 2d 56 65 72 73 69 6f | 6e 3a 20 31 2e 30 0a 43 |e-Versio|n: 1.0.C|
|00000260| 6f 6e 74 65 6e 74 2d 54 | 79 70 65 3a 20 54 45 58 |ontent-T|ype: TEX|
|00000270| 54 2f 50 4c 41 49 4e 3b | 20 63 68 61 72 73 65 74 |T/PLAIN;| charset|
|00000280| 3d 55 53 2d 41 53 43 49 | 49 0a 58 2d 53 65 6e 64 |=US-ASCI|I.X-Send|
|00000290| 65 72 3a 20 62 72 6d 63 | 66 40 75 74 6b 75 78 34 |er: brmc|f@utkux4|
|000002a0| 2e 75 74 63 63 2e 75 74 | 6b 2e 65 64 75 0a 49 6e |.utcc.ut|k.edu.In|
|000002b0| 2d 52 65 70 6c 79 2d 54 | 6f 3a 20 3c 50 69 6e 65 |-Reply-T|o: <Pine|
|000002c0| 2e 53 47 49 2e 33 2e 39 | 31 2e 39 36 30 31 31 30 |.SGI.3.9|1.960110|
|000002d0| 31 32 30 32 32 38 2e 31 | 30 31 33 36 41 2d 31 30 |120228.1|0136A-10|
|000002e0| 30 30 30 30 2d 31 30 30 | 30 30 30 2d 31 30 30 30 |0000-100|000-1000|
|000002f0| 30 30 2d 31 30 30 30 30 | 30 40 68 65 61 72 74 2e |00-10000|0@heart.|
|00000300| 65 6e 67 72 2e 63 73 75 | 6c 62 2e 65 64 75 3e 0a |engr.csu|lb.edu>.|
|00000310| 0a 4f 6e 20 57 65 64 2c | 20 31 30 20 4a 61 6e 20 |.On Wed,| 10 Jan |
|00000320| 31 39 39 36 2c 20 44 2e | 45 2e 20 4c 65 67 61 6e |1996, D.|E. Legan|
|00000330| 20 77 72 6f 74 65 3a 0a | 0a 3e 20 49 20 68 61 76 | wrote:.|.> I hav|
|00000340| 65 6e 27 74 20 67 69 76 | 65 6e 20 69 74 20 6d 75 |en't giv|en it mu|
|00000350| 63 68 20 74 68 6f 75 67 | 68 74 20 79 65 74 2c 20 |ch thoug|ht yet, |
|00000360| 62 75 74 20 20 69 73 20 | 74 68 65 72 65 20 61 6e |but is |there an|
|00000370| 79 77 61 79 20 73 6f 6d | 65 20 23 64 65 66 69 6e |yway som|e #defin|
|00000380| 65 73 20 0a 3e 20 63 6f | 75 6c 64 20 62 65 20 75 |es .> co|uld be u|
|00000390| 73 65 64 20 20 74 6f 20 | 63 61 75 73 65 20 74 68 |sed to |cause th|
|000003a0| 65 20 70 72 65 70 72 6f | 63 65 73 73 6f 72 20 20 |e prepro|cessor |
|000003b0| 74 6f 20 63 6f 6e 76 65 | 72 74 20 41 4e 53 49 20 |to conve|rt ANSI |
|000003c0| 73 74 61 6e 64 61 72 64 | 20 43 20 74 6f 20 0a 3e |standard| C to .>|
|000003d0| 20 4b 26 52 20 43 3f 20 | 20 41 66 74 65 72 20 61 | K&R C? | After a|
|000003e0| 6c 6c 20 43 2b 2b 20 77 | 61 73 20 6f 72 69 67 69 |ll C++ w|as origi|
|000003f0| 6e 61 6c 6c 79 20 69 6d | 70 6c 69 6d 65 6e 74 65 |nally im|plimente|
|00000400| 64 20 61 73 20 61 20 70 | 72 65 70 72 6f 63 65 73 |d as a p|reproces|
|00000410| 73 6f 72 20 74 68 61 74 | 20 0a 3e 20 6f 75 74 70 |sor that| .> outp|
|00000420| 75 74 20 20 43 2e 0a 09 | 54 77 6f 20 6f 66 20 74 |ut C...|Two of t|
|00000430| 68 65 20 63 68 61 6e 67 | 65 73 20 74 68 61 74 20 |he chang|es that |
|00000440| 63 61 75 73 65 20 62 61 | 63 6b 77 61 72 64 20 63 |cause ba|ckward c|
|00000450| 6f 6d 70 61 74 69 62 69 | 6c 69 74 79 20 70 72 6f |ompatibi|lity pro|
|00000460| 62 6c 65 6d 73 20 61 72 | 65 20 0a 74 68 61 74 20 |blems ar|e .that |
|00000470| 4b 26 52 20 43 20 70 65 | 72 6d 69 74 74 65 64 20 |K&R C pe|rmitted |
|00000480| 61 6c 6c 20 73 74 72 75 | 63 74 20 6e 61 6d 65 73 |all stru|ct names|
|00000490| 20 74 6f 20 69 6e 68 61 | 62 69 74 20 74 68 65 20 | to inha|bit the |
|000004a0| 73 61 6d 65 20 6e 61 6d | 65 73 70 61 63 65 2c 20 |same nam|espace, |
|000004b0| 0a 77 68 69 6c 65 20 69 | 6e 20 41 4e 53 49 20 43 |.while i|n ANSI C|
|000004c0| 2c 20 65 61 63 68 20 73 | 74 72 75 63 74 20 68 61 |, each s|truct ha|
|000004d0| 73 20 61 20 6e 61 6d 65 | 73 70 61 63 65 20 74 6f |s a name|space to|
|000004e0| 20 69 74 73 65 6c 66 2e | 20 20 53 6f 20 69 66 20 | itself.| So if |
|000004f0| 79 6f 75 20 64 65 66 69 | 6e 65 3a 0a 0a 73 74 72 |you defi|ne:..str|
|00000500| 75 63 74 20 70 6f 69 6e | 74 0a 7b 09 73 74 72 75 |uct poin|t.{.stru|
|00000510| 63 74 20 70 6f 69 6e 74 | 20 2a 6e 65 78 74 3b 0a |ct point| *next;.|
|00000520| 2e 2e 2e 0a 7d 0a 0a 61 | 6e 64 0a 0a 73 74 72 75 |....}..a|nd..stru|
|00000530| 63 74 20 63 6f 6e 73 74 | 72 61 69 6e 74 0a 7b 0a |ct const|raint.{.|
|00000540| 09 73 74 72 75 63 74 20 | 63 6f 6e 73 74 72 61 69 |.struct |constrai|
|00000550| 6e 74 20 2a 6e 65 78 74 | 3b 0a 09 73 74 72 75 63 |nt *next|;..struc|
|00000560| 74 20 70 6f 69 6e 74 20 | 2a 66 69 72 73 74 3b 0a |t point |*first;.|
|00000570| 2e 2e 2e 0a 7d 0a 09 79 | 6f 75 20 61 72 65 20 4f |....}..y|ou are O|
|00000580| 4b 20 69 6e 20 41 4e 53 | 49 20 43 2c 20 62 75 74 |K in ANS|I C, but|
|00000590| 20 64 65 70 65 6e 64 69 | 6e 67 20 6f 6e 20 74 68 | dependi|ng on th|
|000005a0| 65 20 4b 26 52 20 63 6f | 6d 70 69 6c 65 72 20 79 |e K&R co|mpiler y|
|000005b0| 6f 75 20 63 6f 75 6c 64 | 20 0a 62 65 20 69 6e 20 |ou could| .be in |
|000005c0| 74 72 6f 75 62 6c 65 2e | 20 20 54 68 61 74 27 73 |trouble.| That's|
|000005d0| 20 73 6f 6d 65 74 68 69 | 6e 67 20 74 68 61 74 20 | somethi|ng that |
|000005e0| 61 20 73 6d 61 72 74 20 | 70 72 65 2d 70 72 6f 63 |a smart |pre-proc|
|000005f0| 65 73 73 6f 72 20 63 6f | 75 6c 64 20 62 65 20 0a |essor co|uld be .|
|00000600| 77 72 69 74 74 65 6e 20 | 74 6f 20 63 61 74 63 68 |written |to catch|
|00000610| 2c 20 73 61 79 20 62 79 | 20 70 72 65 66 69 78 69 |, say by| prefixi|
|00000620| 6e 67 20 65 6e 6f 75 67 | 68 20 6f 66 20 74 68 65 |ng enoug|h of the|
|00000630| 20 73 74 72 75 63 74 20 | 6e 61 6d 65 20 74 6f 20 | struct |name to |
|00000640| 74 68 65 20 0a 73 74 72 | 75 63 74 20 6d 65 6d 62 |the .str|uct memb|
|00000650| 65 72 20 6e 61 6d 65 73 | 20 74 6f 20 6d 61 6b 65 |er names| to make|
|00000660| 20 65 61 63 68 20 73 74 | 72 75 63 74 20 6d 65 6d | each st|ruct mem|
|00000670| 62 65 72 20 6e 61 6d 65 | 20 75 6e 69 71 75 65 2e |ber name| unique.|
|00000680| 0a 0a 09 41 6e 6f 74 68 | 65 72 20 69 73 20 66 75 |...Anoth|er is fu|
|00000690| 6e 63 74 69 6f 6e 20 64 | 65 63 6c 61 72 61 74 69 |nction d|eclarati|
|000006a0| 6f 6e 73 2e 20 20 57 68 | 65 6e 20 64 65 66 69 6e |ons. Wh|en defin|
|000006b0| 69 6e 67 20 61 6e 20 41 | 4e 53 49 20 43 20 0a 66 |ing an A|NSI C .f|
|000006c0| 75 6e 63 74 69 6f 6e 2c | 20 79 6f 75 20 64 6f 20 |unction,| you do |
|000006d0| 61 20 4b 26 52 20 64 65 | 63 6c 61 72 61 74 69 6f |a K&R de|claratio|
|000006e0| 6e 3a 0a 0a 73 74 72 75 | 63 74 20 70 6f 69 6e 74 |n:..stru|ct point|
|000006f0| 20 2a 6e 65 78 74 5f 70 | 6f 69 6e 74 28 70 74 2c | *next_p|oint(pt,|
|00000700| 20 6e 29 0a 09 73 74 72 | 75 63 74 20 70 6f 69 6e | n)..str|uct poin|
|00000710| 74 20 2a 70 74 3b 0a 09 | 75 6e 73 69 67 6e 65 64 |t *pt;..|unsigned|
|00000720| 20 69 6e 74 20 6e 3b 0a | 7b 0a 2e 2e 2e 0a 09 62 | int n;.|{......b|
|00000730| 75 74 20 79 6f 75 20 63 | 61 6e 20 61 6c 73 6f 20 |ut you c|an also |
|00000740| 70 75 74 20 74 68 65 20 | 74 79 70 65 20 69 6e 66 |put the |type inf|
|00000750| 6f 72 6d 61 74 69 6f 6e | 20 69 6e 73 69 64 65 20 |ormation| inside |
|00000760| 74 68 65 20 70 61 72 65 | 6e 74 68 65 73 65 73 3a |the pare|ntheses:|
|00000770| 0a 0a 73 74 72 75 63 74 | 20 70 6f 69 6e 74 20 2a |..struct| point *|
|00000780| 6e 65 78 74 5f 70 6f 69 | 6e 74 28 73 74 72 75 63 |next_poi|nt(struc|
|00000790| 74 20 70 6f 69 6e 74 20 | 2a 70 74 2c 20 75 6e 73 |t point |*pt, uns|
|000007a0| 69 67 6e 65 64 20 69 6e | 74 20 6e 29 0a 7b 0a 2e |igned in|t n).{..|
|000007b0| 2e 2e 0a 09 41 67 61 69 | 6e 2c 20 74 68 69 73 20 |....Agai|n, this |
|000007c0| 69 73 20 73 6f 6d 65 74 | 68 69 6e 67 20 61 20 73 |is somet|hing a s|
|000007d0| 6d 61 72 74 20 70 72 65 | 2d 70 72 6f 63 65 73 73 |mart pre|-process|
|000007e0| 6f 72 20 63 6f 75 6c 64 | 20 62 65 20 77 72 69 74 |or could| be writ|
|000007f0| 74 65 6e 20 0a 74 6f 20 | 63 61 74 63 68 20 61 6e |ten .to |catch an|
|00000800| 64 20 6d 6f 64 69 66 79 | 20 74 6f 20 4b 26 52 2e |d modify| to K&R.|
|00000810| 20 20 42 75 74 20 79 6f | 75 20 77 6f 75 6c 64 20 | But yo|u would |
|00000820| 6e 65 65 64 20 61 20 70 | 72 6f 67 72 61 6d 20 74 |need a p|rogram t|
|00000830| 6f 20 6d 61 73 73 61 67 | 65 20 74 68 65 20 0a 63 |o massag|e the .c|
|00000840| 6f 64 65 3a 20 49 20 64 | 6f 6e 27 74 20 74 68 69 |ode: I d|on't thi|
|00000850| 6e 6b 20 79 6f 75 20 63 | 6f 75 6c 64 20 64 6f 20 |nk you c|ould do |
|00000860| 69 74 20 77 69 74 68 20 | 23 20 64 69 72 65 63 74 |it with |# direct|
|00000870| 69 76 65 73 2e 0a 0a 09 | 46 6f 72 20 6d 6f 72 65 |ives....|For more|
|00000880| 2c 20 73 65 65 20 74 68 | 65 20 65 78 63 65 6c 6c |, see th|e excell|
|00000890| 65 6e 74 20 62 6f 6f 6b | 20 27 50 6f 72 74 61 62 |ent book| 'Portab|
|000008a0| 6c 65 20 43 27 2e 0a 0a | 56 69 72 74 75 61 6c 6c |le C'...|Virtuall|
|000008b0| 79 2c 0a 0a 42 72 75 63 | 65 20 4d 63 46 61 72 6c |y,..Bruc|e McFarl|
|000008c0| 69 6e 67 2c 20 4b 6e 6f | 78 76 69 6c 6c 65 0a 62 |ing, Kno|xville.b|
|000008d0| 72 6d 63 66 40 75 74 6b | 75 78 2e 75 74 6b 2e 65 |rmcf@utk|ux.utk.e|
|000008e0| 64 75 0a 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |du.-----|--------|
|000008f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000900| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000910| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000920| 2d 0a 3a 20 49 66 20 69 | 74 20 77 61 73 20 6d 79 |-.: If i|t was my|
|00000930| 20 65 6d 70 6c 6f 79 65 | 72 27 73 20 6f 70 69 6e | employe|r's opin|
|00000940| 69 6f 6e 2c 20 74 68 65 | 79 20 77 6f 75 6c 64 20 |ion, the|y would |
|00000950| 68 61 76 65 20 73 69 67 | 6e 65 64 20 69 74 20 3a |have sig|ned it :|
|00000960| 0a 3a 20 53 75 72 65 20 | 49 20 6b 6e 65 77 20 74 |.: Sure |I knew t|
|00000970| 68 61 74 20 2a 79 6f 75 | 2a 20 6b 6e 65 77 20 74 |hat *you|* knew t|
|00000980| 68 61 74 2c 20 62 75 74 | 20 6e 6f 77 20 65 76 65 |hat, but| now eve|
|00000990| 72 79 62 6f 64 79 20 6b | 6e 6f 77 73 20 20 3a 0a |rybody k|nows :.|
|000009a0| 0a | |. | |
+--------+-------------------------+-------------------------+--------+--------+